<script setup lang="ts">
// Pick:从一个类型中取出想要属性的类型
type Tuser = {
  name: string
  age: number
  gender: 0 | 1
}
type xx = Pick<Tuser, 'name'>
const user: xx = {
  name: '张三'
}

// Omit：从一个类型中排除某些属性的类型后得到其它属性类型
type xx2 = Omit<Tuser, 'age' | 'gender'>
const user2: xx2 = {
  name: '张三'
}
</script>

<template>
  <div class="api-page"></div>
</template>

<style lang="scss" scoped></style>
